﻿@model IEnumerable<CMS2.Models.Student>

@{
    ViewBag.Title = "Index";
    ViewBag.BreadCrumb = "Admin";
}

    <link rel="stylesheet" href="@Url.Content("~/Content/css/tables.css")" />
  @*<link rel="stylesheet" href="./css/tables.css" media="screen"  />*@

<div class="grid-1">
           <div class="title-grid">Index</div>
           <div class="content-gird">
            	<table class="display" id="example">
                <thead>
                    <tr>
                        
                        <th class="th_title">Roll No</th>
                        @*<th class="th_status">User Name</th>*@
                        <th class="th_date">Name</th>
                       @* <th class="th_author">Father Name</th>
                        <th class="th_author">Gender</th>
                        <th class="th_author">DOB</th>
                        <th class="th_author">Admission Date</th>
                        <th class="th_author">Degree</th>
                      *@  <th class="th_author">Mob. No</th>
                       @* <th class="th_author">Land Line No</th>
                        <th class="th_author">Address</th>
                        *@<th class="th_author">Current Class</th>
                        <th class="th_chexbox"> </th>
                        <th class="th_chexbox"> </th>
                       
                    </tr>
                </thead>
                @foreach (var item in Model)
                {
                <tbody>
                    <tr class="item">
                        
                        <td class="subject"><a href="#">@Html.DisplayFor(modelItem => item.RollNo)</a></td>
                        @*<td><span class="published"></span>@Html.DisplayFor(modelItem => item.Username)</td>*@
                        <td>@Html.DisplayFor(modelItem => item.Name)</td>
                        @*<td class="name">@Html.DisplayFor(modelItem => item.FatherName)</td>
                        <td class="name">@Html.DisplayFor(modelItem => item.Gender)</td>
                        <td class="name">@Html.DisplayFor(modelItem => item.DateOfBirth)</td>
                        <td class="name">@Html.DisplayFor(modelItem => item.AdmissionDate)</td>
                        <td class="name">@Html.DisplayFor(modelItem => item.Degree)</td>*@
                        <td class="name">@Html.DisplayFor(modelItem => item.MobileNo)</td>
                        @*<td class="name">@Html.DisplayFor(modelItem => item.LandLineNo)</td>
                        <td class="name">@Html.DisplayFor(modelItem => item.Address)</td>*@
                        <td class="name">@Html.DisplayFor(modelItem => item.currentClass.Name) &nbsp&nbsp @Html.DisplayFor(modelItem => item.currentClass.Section)</td>

                         <td colspan="2">
                             @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
                             @Html.ActionLink("Details", "Details", new { id=item.Id }) |
                             @Html.ActionLink("Delete", "Delete", new { id=item.Id })
                         </td>

                       
                    </tr>
                    
                        
                                          
                </tbody>
                }
            </table>
    		<div class="clear"> </div>
           </div>
           </div>



@*<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            RollNo
        </th>
        <th>
            Username
        </th>
        <th>
            Name
        </th>
        <th>
            FatherName
        </th>
        <th>
            Gender
        </th>
        <th>
            DateOfBirth
        </th>
        <th>
            AdmissionDate
        </th>
        <th>
            Degree
        </th>
        <th>
            MobileNo
        </th>
        <th>
            LandLineNo
        </th>
        <th>
            Address
        </th>
         <th>
            Current Class
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.RollNo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FatherName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Gender)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateOfBirth)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AdmissionDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Degree)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MobileNo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LandLineNo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            
            @Html.DisplayFor(modelItem => item.currentClass.Name)
            @Html.DisplayFor(modelItem => item.currentClass.Section)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>*@
